package com.aidex.biz.mapper;

import com.aidex.biz.domain.CustomerXiezu;
import com.aidex.biz.domain.PushCustomer;
import com.aidex.common.core.mapper.BaseMapper;

import java.util.List;

/**
 * 客户协助Mapper接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-11-29
 */
public interface CustomerXiezuMapper extends BaseMapper<CustomerXiezu> {

    /**
     * 批量删除客户协助
     *
     * @param ids 需要删除的客户协助ID集合
     * @return
     */
    public int deleteCustomerXiezuByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param customerXiezu 客户协助
     * @return 结果
     */
    public Integer findMaxSort(CustomerXiezu customerXiezu);

    public List<CustomerXiezu> findMyXieZuList(CustomerXiezu customerXiezu);

    public Integer deleteByCustomerId(CustomerXiezu customerXiezu);

    public List<PushCustomer> findPushCustomerListByPhones(List<CustomerXiezu> customers);

    public Integer insertBatch(List<CustomerXiezu> list);
}
